int** generate(int numRows, int* returnSize, int** returnColumnSizes) {
	int i = 0;

	int** arr = (int**)malloc(numRows * sizeof(int*));
	for (i = 0; i < numRows; i++) {
		arr[i] = (int*)malloc(numRows * sizeof(int));
	}
	*returnSize = numRows;
	*returnColumnSizes = (int*)malloc(numRows * sizeof(int));
	for (i = 0; i < numRows; i++) {
		int j = 0;
		(*returnColumnSizes)[i] = i + 1;
		arr[i][0] = arr[i][i] = 1;
		for (j = 1; j < i; j++) {
			arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j];
		}
	}
	return arr;
}